package com.example.JavaConcurrent.Project2_CountDownLatchAndCyclicBarrier.CyclicBarrierBegin_6;

import java.util.concurrent.CyclicBarrier;

public class Run {
    public static void main(String[] args) throws InterruptedException {


        MyService myService=new MyService();

        MyThread t1  = new MyThread(myService);
        t1.setName("t1");
        t1.start();

        MyThread t2  = new MyThread(myService);
        t2.setName("t2");
        t2.start();



    }
}
